//
//  BLHomeCollectionViewCell.m
//  blanket
//
//  Created by Mac on 2017/12/5.
//  Copyright © 2017年 stoneobs@icloud.com. All rights reserved.
//

#import "BLHomeTableViewCell.h"
@interface BLHomeTableViewCell()

@end

@implementation BLHomeTableViewCell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self == [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self configSubView];
    }
    return self;
}
+ (CGFloat)cellHeight{
    return 200;
}
#pragma mark --subView
- (void)configSubView{
    
    self.bannerImageView = [[UIImageView alloc] initWithFrame:CGRectMake(15, 5, UIScreenWidth - 30, self.class.cellHeight - 10)];
    self.bannerImageView.image = [UIImage imageNamed:@""];
    self.bannerImageView.contentMode = UIViewContentModeScaleAspectFill;
    self.bannerImageView.clipsToBounds = YES;
    [self addSubview:self.bannerImageView];
}
- (void)setModel:(BLShopModel *)model
{
    _model = model;
    [self.bannerImageView sd_setImageWithURL:[NSURL URLWithString:model.cover_img_url] completed:nil];
}

@end
